import { createRouter, createWebHistory } from 'vue-router'
// import HomeView from '../views/HomeViewComputed.vue'
import HomeView from '@/views/router-view/Homerouter.vue';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/home',
      name: 'home',
      component: HomeView
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue')
    },
    {
      path: '/detail',
      name: 'detail',
      component: () => import('../views/router-view/Detail.vue')
    },
    {
      path: '/user',
      name: 'user',
      component: () => import('@/views/store-view/User.vue')
    },
    {
      path: '/cart',
      name: 'cart',
      component: () => import('@/views/store-view/Cart.vue')
    },
    {
      path: '/count',
      name: 'count',
      component: () => import('@/views/store-view/Count.vue')
    }
  ]
})

export default router
